/**
 * This software is copyrighted by Bosch Connected Devices and Solutions GmbH, 2016.
 * The use of this software is subject to the XDK SDK EULA
 */
 
#ifndef ENVIRONMENTAL_H_
#define ENVIRONMENTAL_H_

/* private type and macro definitions */

/* constant definitions ***************************************************** */
#define INIT_DONE                         UINT8_C(1)
#define INIT_NOT_DONE                     UINT8_C(0)

#define TEMPERATURE                       UINT8_C(0)
#define PRESSURE                          UINT8_C(1)
#define HUMIDITY                          UINT8_C(2)

#define PACKAGE_ID_DEFAULT                UINT32_C(0) /**< default package ID*/
#define GET_MAPPING_ERROR                 INT8_C(-2)
#define GET_MODE                          UINT8_C(1)
#define GET_STANDBY_TIME                  UINT8_C(2)

/** output value from BME280 library is 42313.value 42313 = 42313/1024 = 41.321 %rH */
#define ENVI_BME280_HUM_RH_CONV           UINT32_C(1024)

/** Output value from BME280 library is "5123" equals 51.23 DegC.
 * 5213 = 5123/100 DegC = (5123/100)*1000 milliDegC so conversion factor is 10*/
#define ENVI_BME280_TEMP_MIILIDEG_CONV    INT32_C(10)

#endif /* ENVIRONMENTAL_H_*/